<?php

require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/DBClass.php';
require_once 'lib/Account.php';
require_once 'lib/Index.php';

$smarty = new Smarty();
$acc = new Account();
$halaman = new Halaman();
$index = new Index();


$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';

$news_bg = $index->get_news_bg();
$smarty->assign('page','main.html');
$smarty->assign('news_bg', $news_bg);

$news_md = $index->get_news_md();
$smarty->assign('page','main.html');
$smarty->assign('news_md', $news_md);

$smarty->display('index.html');

?>